package Filter;

import javax.servlet.*;
import java.io.IOException;

public class Filter2 implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

        System.out.println("Filter2的前置代码");
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("Filter2的后置代码");

    }
}
